// Copyright (C) Kumo inc. and its affiliates.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//
#pragma once

#include <pollux/testing/expression/arg_types_generator.h>
#include <pollux/functions/function_registry.h>

namespace kumo::pollux::fuzzer::test {

/// Assert the equivalence between the given return type and the actual type
/// resolved from generated argument types.
void assertReturnType(
    const std::shared_ptr<ArgTypesGenerator>& generator,
    const exec::FunctionSignature& signature,
    const TypePtr& returnType);

// Assert that no argument types can be generated for the given return type.
void assertEmptyArgs(
    std::shared_ptr<ArgTypesGenerator> generator,
    const exec::FunctionSignature& signature,
    const TypePtr& returnType);

} // namespace kumo::pollux::fuzzer::test
